"""
应用入口（使用Gunicorn）
"""

from werkzeug.contrib.fixers import ProxyFix

from app import setup_logging
from app import (create_app, init_scheduler_app)
from app.scheduler.taskscheduler import SchedulerConfig

app = create_app()

app.wsgi_app = ProxyFix(app.wsgi_app)
# 启动日志记录
setup_logging()
# 任务调度配置
# app.config.from_object(SchedulerConfig())
# init_scheduler_app(app)

if __name__ == '__main__':
    app.run()
